package com.kalvin.kvf.modules.hxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.hxy.entity.Port;
import com.kalvin.kvf.modules.hxy.mapper.PortMapper;

import java.util.List;

/**
 * <p>
 * 端口号表 服务实现类
 * </p>
 * @since 2023-10-29 14:49:02
 */
@Service
public class PortServiceImpl extends ServiceImpl<PortMapper, Port> implements PortService {

    @Override
    public Page<Port> listPortPage(Port port) {
        Page<Port> page = new Page<>(port.getCurrent(), port.getSize());
        List<Port> ports = baseMapper.selectPortList(port, page);
        return page.setRecords(ports);
    }

}
